<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header ">
            <a class="navbar-brand " href="<%= user ? '/main' : '#'%>">mailbox</a>
        </div>
        <div class="<%= !user  ? 'hide' : '' %>">
            <ul class="nav navbar-nav navbar-left">
                <li class="<%= active == 1 ? 'active' : ''%>"><a href="/mail/write">写信</a></li>
                <li class="<%= active == 2 ? 'active' : ''%>"><a href="/mail">收信箱</a></li>
                <li class="<%= active == 3 ? 'active' : ''%>"><a href="/mail/draft">草稿箱</a></li>
                <li class="<%= active == 4 ? 'active' : ''%>"><a href="/mail/outbox">发件箱</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a><%= user ? user.email : null %></a></li>
                <li><a href="JavaScript:signout()">退出</a></li>
            </ul>
        </div>
    </div>
</nav>
